package net.supcmdr.test.gui;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

@SuppressWarnings("serial")
public class MenuBar extends JMenuBar {
	
	private JMenu fileMenu;
	private JMenu editMenu;
	private JMenu viewMenu;
	
	public MenuBar(){
		initialize();
	}
	
	private void initialize(){
		
		// create the menus
		fileMenu = new JMenu("File");
		editMenu = new JMenu("Edit");
		viewMenu = new JMenu("View");
		
		
		// add the menus to the menu bar
		this.add(fileMenu);
		this.add(editMenu);
		this.add(viewMenu);
		
		
		// create file menu items
		JMenuItem closeOption = new JMenuItem("Exit");
		
		
		// add file menu items
		fileMenu.add(closeOption);
		
		
		// create edit menu items
		JMenuItem editOption1 = new JMenuItem("<placeholder>");
		
		
		// add edit menu items
		editMenu.add(editOption1);
		
		
		// create view menu items
		JMenuItem tabOption1 = new JMenuItem("<placeholder>");
		
		
		// add view menu items
		viewMenu.add(tabOption1);
	}

}
